package com.example.shiyansan.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserLoginDTO implements Serializable {
    @NotNull(message = "用户名不能为空")
    private String username;
    @Pattern(regexp = "^.{1,18}$")
    private String password;
}
